package com.kb.design.controller;


import com.kb.design.common.ApiResponse;
import com.kb.design.entity.DesignComment;
import com.kb.design.service.DesignCommentService;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;;

/**
 * 客户评论表(DesignComment)表控制层
 *
 * @author makejava
 * @since 2024-01-31 16:44:48
 */
@RestController
@RequestMapping("comment")
public class DesignCommentController {
    /**
     * 服务对象
     */
    @Resource
    private DesignCommentService designCommentService;


    /**
     * 新增数据
     *
     * @param designComment 实体
     * @return 新增结果
     */
    @PostMapping("/add")
    public ApiResponse add(@RequestBody DesignComment designComment) {
        designCommentService.add(designComment);
        return ApiResponse.success("保存成功");
    }

    @GetMapping("/del")
    public ApiResponse deleteById(Long id) {
        return ApiResponse.success("删除成功");
    }

}

